package org.iweb.html.impl.js;

import org.iweb.html.impl.js.engine.JQueryEngine;
import org.iweb.html.impl.js.engine.JavascriptEngine;

public class JavascriptEngineFactory {

	
	private static JavascriptEngineFactory instance;
	private JavascriptEngine engine;
	
	private JavascriptEngineFactory(){
		engine=new JQueryEngine();
	}

	public static JavascriptEngineFactory getInstance() {
		if(instance==null)
			instance=new JavascriptEngineFactory();
		return instance;
	}

	public void setEngine(JavascriptEngine engine) {
		this.engine = engine;
	}

	public JavascriptEngine getEngine() {
		return engine;
	}
	
}
